package com.htgd.gardenexpo.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.htgd.gardenexpo.entity.GeDataGis;
import com.htgd.gardenexpo.dao.GeDataGisMapper;
import com.htgd.gardenexpo.page.PageBase;
import com.htgd.gardenexpo.service.IGeDataGisService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * gis引擎 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-04-25
 */
@Service
public class GeDataGisServiceImpl extends ServiceImpl<GeDataGisMapper, GeDataGis> implements IGeDataGisService {

    @Autowired
    private GeDataGisMapper geDataGisMapper;

    @Override
    public PageInfo<GeDataGis> pageList(PageBase pageBase) {
        PageHelper.startPage(pageBase.getPageNum(),pageBase.getPageSize());
        List<GeDataGis> list = geDataGisMapper.pageList();
        return new PageInfo<>(list);
    }
}
